package me.yxy.mobanddd.components.filter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 返回JSON的格式化优化过滤器
 */
public class ResponseFormatFilter extends HttpFilter {

    @Override
    protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {

//        String path = request.getServletPath();
//        if(inWhiteList(path)){
//            chain.doFilter(request,response);
//        }

    }
}
